import request from '@/utils/request'
declare const interfaceUrl: any;
// const basePath = interfaceUrl.oneAccess
import {baseUrlConfig} from '@/config/config'
const basePath = baseUrlConfig.oneAccess
// 获取认证的连接
export const getAuthorize = () => {
  return request<any,{code:string;data:any}>({
    url: basePath + '/oneAccess/getAuthorize',
    method: 'GET'
  })
}
// 获取用户的认证信息
export const getUserAuth = (data: { clientId: string, clientSecret: string, code: string }) => {
  return request({
    url: basePath + '/oneAccess/getUserAuth',
    method: 'POST',
    data
  })
}
